package com.junnan.adminbackend.config;

import java.io.Serializable;

/**
 * @ClassName ProcessResult
 * @Description
 * @Author jinys
 * @Date 2021/3/26 17:52
 * @Version V1.0
 **/

public class ProcessResult implements Serializable {
    private static final long serialVersionUID = 1L;
    public static final String ERROR = "ERROR";
    public static final String SUCCESS = "SUCCESS";
    public static final String BUZ_EXCEPTION = "BUZ_EXCEPTION";
    public static final String SHOW_SQL = "SHOW_SQL";
    public static final String WARN = "WARN";
    private String resultStat;
    private String mess;
    private String callBack;
    private Object data;
    private String redirectURL;

    public ProcessResult() {
        this.resultStat = "SUCCESS";
    }

    public ProcessResult(String resultStat, String mess) {
        this.resultStat = resultStat;
        this.mess = mess;
    }

    public ProcessResult(String resultStat) {
        this.resultStat = resultStat;
    }

    public ProcessResult(String resultStat, String mess, Object data) {
        this.resultStat = resultStat;
        this.mess = mess;
        this.data = data;
    }

    public String getResultStat() {
        return this.resultStat;
    }

    public void setResultStat(String resultStat) {
        this.resultStat = resultStat;
    }

    public String getMess() {
        return this.mess;
    }

    public void setMess(String mess) {
        this.mess = mess;
    }

    public String getCallBack() {
        return this.callBack;
    }

    public void setCallBack(String callBack) {
        this.callBack = callBack;
    }

    public Object getData() {
        return this.data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getRedirectURL() {
        return this.redirectURL;
    }

    public void setRedirectURL(String redirectURL) {
        this.redirectURL = redirectURL;
    }
}
